package org.springframework.fusion.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.fusion.service.EmailSendService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EmailController {

    @Autowired
    private EmailSendService emailSendService;

	@GetMapping("test")
    public ResponseEntity<Void> sendSimpleMail() {
        emailSendService.sendEmail("zhaoxingyann@163.com", "主题：开发测试邮件", "测试邮件内容");
        return ResponseEntity.ok().build();
    }
}
